<div class="layui-layout layui-layout-admin">

    <div class="layui-body" style="margin: 1%">
        <!--<button class="layui-btn" onclick="">导入模板下载</button>
        <button class="layui-btn" onclick="">excel导入</button>
        <button class="layui-btn" onclick="">数据导出</button>-->
        <div class="layui-input-inline">
            <input type="text" class="layui-input" style="display: inline-block" id="menuSearch" placeholder="请输入菜单名称">
        </div>
        <button class="layui-btn" onclick="getMenuByName()">搜索</button>
        <button class="layui-btn layui-btn-normal" onclick="add()">新增</button>
        <table id = "menuTable" lay-filter="menuTable"></table>
        <script type="text/html" id="barDemo">
            <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
            <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
        </script>
    </div>

    <div id="setMenu" class="layer_self_wrap" style="padding:20px;display:none;">
        <form id="menuForm" class="layui-form layui-form-pane" method="post" action="" >
            <input id="id" type="hidden" name="id"/>

            <div class="layui-form-item">
                <label class="layui-form-label">编号</label>
                <div class="layui-input-inline">
                    <input id="number" name="number" lay-verify="required" autocomplete="off" class="layui-input" type="number"/>
                </div>
            </div><div class="layui-form-item">
                <label class="layui-form-label">上级编号</label>
                <div class="layui-input-inline">
                    <input id="parentNumber" name="parentNumber" lay-verify="required" autocomplete="off" class="layui-input" type="number"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">菜单名称</label>
                <div class="layui-input-inline">
                    <input id="name" name="name" lay-verify="required" autocomplete="off" class="layui-input" type="text"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">备注信息</label>
                <div class="layui-input-inline">
                    <input id="remake" name="remake" autocomplete="off" class="layui-input" type="text"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">url</label>
                <div class="layui-input-inline">
                    <input id="url" name="url" autocomplete="off" class="layui-input" type="text"/>
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-input-block" style="margin-left: 10px;text-align: center">
                    <button class="layui-btn"  lay-submit="" lay-filter="menuSubmit">提交</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
        </form>
    </div>


</div>
<script src="/common/js/menu/menu.js"></script>


